<div id="box-wrapper">
    <div id="top-left"></div>
    <div id="top-right"></div>
    <div id="top-center"></div>
    <div id="main-left"></div>        
    <div id="main-right"></div>        
    <div id="bottom-left"></div>        
    <div id="bottom-right"></div>        
    <div id="bottom-center"></div>
    <div id="box-content">                    
        <div class="header">
            <div class="logo">
                <div class="inner">
                    <h1>Add to your Profile</h1><br /><span>Your Almost there!</span>
                </div>
            </div>
            <h2>Additional info</h2>                            
        </div>
        <p>Ximent, occatem volo ipiendis reius resecti aspedi aute earum facepudis im dolum acipsapis velibus. Itatur? Rorument aut quate eaquam nus rero ommodi tem faccus minti odicat.Tem. Ut rectibus sum ad mos am hil magnatur atecuscid utatum qui sequia voluptas asped etum, consed ut repro et explicia consequisi officiures solescia sequae omnit enis ipitae nimi, nulligenia </p>
        <p><strong>*URLS can be changed at anytime after the site is created</strong></p>
        <div class="form wide">
            <form id="form-back-to-previous" method="post" action="<?php if($siteInfo->layout=='template') $prevRoute = '/FrontDesk/site/selectModules'; else $prevRoute = '/FrontDesk/site/setupDomain'; echo $this->createUrl($prevRoute); ?>"></form>
            <?php
            $form=$this->beginWidget('CActiveForm', array(
                'id'=>'form-add-profile',
                'action'=>array('/FrontDesk/site/setupDomain'),
                'action'=>(($siteInfo->layout=='template') ? array('/FrontDesk/site/setupDomain') : array('/FrontDesk/site/finish')),
                'enableClientValidation' => true,
                'clientOptions' => array(
                    'validateOnSubmit'=>true,
                ),
            ));
            ?>
                <?php echo $siteInfo->showAttributesHiddenFields(array('user_name','user_address','user_city','user_state','user_zipcode','user_phone','site_name')); ?>
                <div class="row">
                    <label>Name:</label>
                    <div class="textbox">
                        <span>
                            <?php echo $form->textField($siteInfo,'user_name',array('class'=>'site-info-field')); ?>
                        </span>
                    </div>
                    <span class="required">*</span>
                    <?php echo $form->error($siteInfo,'user_name'); ?>
                </div>
                <div class="row">
                    <label>Address:</label>
                    <div class="textbox">
                        <span>
                            <?php echo $form->textField($siteInfo,'user_address',array('class'=>'site-info-field')); ?>
                        </span>
                    </div>
                    <?php echo $form->error($siteInfo,'user_address'); ?>                                
                </div>
                <div class="row">
                    <label>City:</label>
                    <div class="textbox">
                        <span>
                            <?php echo $form->textField($siteInfo,'user_city',array('class'=>'site-info-field')); ?> 
                        </span>
                    </div>
                    <?php echo $form->error($siteInfo,'user_city'); ?>                                
                </div>
                <div class="row">
                    <label>State:</label>
                    <div class="textbox">
                        <span>
                            <?php echo $form->textField($siteInfo,'user_state',array('class'=>'site-info-field','style'=>'width: 145px;')); ?>
                        </span>
                    </div>
                    <label style="width:75px">Zip Code :</label>
                    <div class="textbox">
                        <span>
                            <?php echo $form->textField($siteInfo,'user_zipcode',array('class'=>'site-info-field','style'=>'width: 65px;')); ?>
                        </span>
                    </div>
                </div> 
                <div class="row">
                    <label>Phone Number:</label>
                    <div class="textbox">
                        <span>
                            <?php echo $form->textField($siteInfo,'user_phone',array('class'=>'site-info-field')); ?>
                        </span>
                    </div>
                    <?php echo $form->error($siteInfo,'user_phone'); ?>                           
                </div>
                <div class="row">
                    <label>Site Name:</label>
                    <div class="textbox">
                        <span>
                            <?php echo $form->textField($siteInfo,'site_name',array('class'=>'site-info-field')); ?>
                        </span>
                    </div>
                    <span class="required">*</span>
                    <?php echo $form->error($siteInfo,'site_name'); ?>
                </div>
                <div class="row buttons">
                    <a href="#" class="question-button"></a>
                    <div class="button">
                        <span>
                            <input type="submit" value="<?php if($siteInfo->layout=='template') echo 'Step [6 of 6]'; else echo 'Create Your Site'; ?>" />
                        </span>
                    </div>
                    <div class="button">
                        <span>
                            <a id="lnk-back-to-previous" href="#">Back</a>
                        </span>
                    </div>                    
                </div>
                <script type="text/javascript">
                $('#lnk-back-to-previous').click(function(){
                    $('#form-add-profile .site-info-field').each(function(){
                        var ele = $(this).clone();
                        ele.val($(this).val());
                        ele.appendTo($('#form-back-to-previous'));
                    });
                    $('#form-back-to-previous').submit();
                    return false;    
                }); 
                </script>
            <?php $this->endWidget(); ?>
        </div>                
    </div>
</div>